package com.wyw.elasticsearch.learning.common.bean;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;

/**
 * @Title
 * @Description
 * @Author Mr Wu yewen.wu.china@gmail.com
 * @Date 2024/4/8 16:22
 * Update History:
 * Author        Time            Content
 */
@Data
@Document(indexName = "stu")
public class Stu {
    @Id
    private Long stuId;
    @Field
    private String name;
    @Field
    private Integer age;
    @Field
    private float money;
    @Field
    private String description;
}

